package com.ruibang.glass.portal.constant;

public enum UserErrorCode {

    ERROR(100020001, "系统异常,请联系管理员！"),
    PARAM_ERROR(100020002, "参数错误"),
    PARAM_IS_EMPTY(100020003, "参数不能为空!"),
    SAVE_DICT_FAIL(100020004, "保存字典失败!"),
    UPDATE_DICT_ERROE(100020005, "更新字典值失败!"),
    USER_ID_IS_EXISTS(100020006, "用户已存在"),
    DICT_IS_EXIST(100020007, "字典信息已存在!"),
    OLDPASSWORD_IS_NULL(100020008, "初始密码不能为空!"),
    OLDPASSWORD_IS_ERROR(100020009, "初始密码错误"),
    USER_LIST_IS_ERROR(100020010, "获取用户列表失败"),
    NOT_EXISTS(100020011, "记录不存在"),
    DEPT_ID_IS_NULL(100020012, "部门不能为空"),
    PAGESELECT_ROLE_ERROE(100020013, "查询角色信息失败"),
    LOGIN_NAME_IS_NULL(100020014, "登陆名称不能为空"),
    USER_IS_NOT_EXISTS(100020015, "用户不存在"),
    TOKEN_IS_NOT_EXITST(100020016, "授权token不存在"),
    NOT_DELET_ERROR(100020017, "无法删除，请先将部门对应用户解除绑定!"),
    NOT_DELET_ERROR_DEPT(100020018, "无法删除，请先将子部门删除!"),
    NOT_DELET_ERROR_MENU(100020019, "无法删除，该菜单下还有子菜单，请先将子菜单清除"),
    ROLE_ID_IS_EMPTY(100020020, "角色ID为空"),
    LOGIN_NAME_IS_EXISTS(100020021, "用户名已存在"),
    USERNAME_IS_NULL(100020022, "用户名不能为空"),
    PASSWORD_IS_NULL(100020023, "密码不能为空"),
    GRAPHIC_IS_NULL(100020024, "图形验证码不能为空"),
    USER_DISABLE(100020025, "用户被禁用,请联系管理员"),
    PASSWORD_IS_ERROR(100020026, "密码错误"),
    GRAPHIC_IS_ERROR(100020027, "图形验证码错误或无效,请重新输入"),
    PAGESELECT_DICT_ERROE(100020028, "分页查询字典失败"),
    USERTYPE_IS_NULL(100020029, "用户类型不能为空"),
    PASSWORD_PARSE_ERROR(100020030, "密码解析错误,请联系管理员"),
    NOTE_VCODE_OUT_OF_WORK(100020031, "短信验证码已失效,请重新获取"),
    PHONENUM_IS_NOT_REGISTER(100020032, "手机号未注册"),
    SEND_NOTE_VCODE_ERROR(100020033, "发送短信验证码失败"),
    USER_LOGIN_EXPIRY(100020034, "用户登录已失效，请重新登录"),
    DELETE_FACE_INFO(100020035, "删除人脸信息失败"),
    FACE_SEARCH_ERROR(100020036, "未匹配到人脸,请正对摄像头"),
    SAVE_SCAN_ROLE_ERROR(100020037, "保存信息异常"),
    REMOVE_ERROR(100020038, "删除失败"),
    BTN_NOT_TOP(100020039, "按钮不可为顶级"),
    MENU_IS_CHILDREN(100020040, "当前菜单下还有子级存在不可删除");

    private int code;
    private String msg;

    UserErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }

}
